import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_utils_plus/core/validate.dart';

void testValidate() {
  print(isEmptyObject(''));
  print(isEmptyObject([]));
  print(isEmptyObject({}));
  print(isEmptyObject(null));
  print(isEmptyObject(false));
  print(isEmptyObject(true));
  print('---------------------');
  print(isEmptyMap(null));
  print(isEmptyMap({}));
  print(isEmptyMap({"a": 1}));
  print('---------------------');
  print(isEmptyString(null));
  print(isEmptyString(''));
  print(isEmptyString('345'));
  print('---------------------');
  print(isEmptyList(null));
  print(isEmptyList([]));
  print(isEmptyList(['345']));
  print('---------------------');
  print(isChinese('2346556576'));
  print(isChinese('www我www'));
  print(isMobile('18988986510'));
  print(isMobile('2346556576'));
  print('---------------------');
  print(isEmail('18988986510@qq.com'));
  print(isEmail('18988986510q.com'));
  print(isVersion('1.1'));
  print(isVersion('2.30.4'));
  print(isIDCard('362528199403164563'));
  print(isIDCard('36252829947386X'));
  print('---------------------');
  print(isDate('2025-01-01'));
  print(isDate('2025-01'));
  print(isDateTime('2025-01-01 00:00:00'));
  print(isDateTime('2025-01-01'));
  print('---------------------');
  print(isEqual(null, null));
  print(isEqual(0, 0));
  print(isEqual(null, false));
  print(isEqual(true, true));
  print(isEqual([], {}));
  print(isEqual({}, {}));
  print('---------------------');
  print(isEqual([], ['a']));
  print(isEqual({}, {"a": 10}));
  print(isEqual([
    {"a": 10}
  ], [
    {"a": '10'}
  ]));
  print(isEqual([
    {"a": 10}
  ], [
    {"a": 10}
  ]));
  print('---------------------');
  print(isAccount('4546565766'));
  print(isAccount('45465*65766'));
  print(isPwd('4546565766'));
  print(isPwd('4546_565766'));
}
